﻿@model AerolineaApp.Models.Aerolinea

@{
    ViewBag.Title = "Añadir Aerolinea";
}

<h2>Añadir Aerolinea</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Aerolinea</legend>
        <table id="tabla">
        <tr>
        <td>
        <div class="editor-label" >
            @Html.LabelFor(model => model.Nombre)
        </div>
        </td>
        <td>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nombre)
            @Html.ValidationMessageFor(model => model.Nombre)
        </div>
        </td>
        </tr>
        <tr>
        <td>
        <div class="editor-label">
            @Html.LabelFor(model => model.Descripcion)
        </div>
        </td>
        <td>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Descripcion)
            @Html.ValidationMessageFor(model => model.Descripcion)
        </div>
        </td>
        </tr>
        <tr>
        <td>
        
        <div class="editor-label">
            @Html.LabelFor(model => model.Telefono)
        </div>
        </td>
        <td>
        <span style="font-size:10px;">Introduzca El Telefono Sin Guiones</span>
        <div class="editor-field">
            @Html.EditorFor(model => model.Telefono)
            @Html.ValidationMessageFor(model => model.Telefono)
        </div>
        </td>
        </tr>
        <tr>
        <td>
        <div class="editor-label">
            @Html.LabelFor(model => model.PaisId, "Pais:")
        </div>
        </td>
        <td>
        <div class="editor-field" >
            @Html.DropDownList("PaisId", String.Empty)
            @Html.ValidationMessageFor(model => model.PaisId)
        </div>
        </td>
        </tr>
        </table>
        <p>
            <input type="submit" value="Procesar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Volver Atras", "Index")
</div>
